package com.schoolgard.entitybean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * StudentToDevice entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="STUDENT_TO_DEVICE")

public class StudentToDevice  implements java.io.Serializable {


    // Fields    

     private Long id;
     private JobMode jobMode;
     private JobStatus jobStatus;
     private Student student;
     private String guid;
     private String enable;
     private String router;
     private Date createDatetime;
     private Long userId;
     private String userName;
     private Date finishDatetime;
     private String fileName;


    // Constructors

    /** default constructor */
    public StudentToDevice() {
    }

	/** minimal constructor */
    public StudentToDevice(Long id, JobMode jobMode, JobStatus jobStatus, Student student) {
        this.id = id;
        this.jobMode = jobMode;
        this.jobStatus = jobStatus;
        this.student = student;
    }
    
    /** full constructor */
    public StudentToDevice(Long id, JobMode jobMode, JobStatus jobStatus, Student student, String guid, String enable, String router, Date createDatetime, Long userId, String userName, Date finishDatetime, String fileName) {
        this.id = id;
        this.jobMode = jobMode;
        this.jobStatus = jobStatus;
        this.student = student;
        this.guid = guid;
        this.enable = enable;
        this.router = router;
        this.createDatetime = createDatetime;
        this.userId = userId;
        this.userName = userName;
        this.finishDatetime = finishDatetime;
        this.fileName = fileName;
    }

   
    // Property accessors
    @Id 
    
    @Column(name="ID", unique=true, nullable=false, precision=10, scale=0)

    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="JOB_MODE_ID", nullable=false)

    public JobMode getJobMode() {
        return this.jobMode;
    }
    
    public void setJobMode(JobMode jobMode) {
        this.jobMode = jobMode;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="JOB_STATUS_ID", nullable=false)

    public JobStatus getJobStatus() {
        return this.jobStatus;
    }
    
    public void setJobStatus(JobStatus jobStatus) {
        this.jobStatus = jobStatus;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="STUDENTID", nullable=false)

    public Student getStudent() {
        return this.student;
    }
    
    public void setStudent(Student student) {
        this.student = student;
    }
    
    @Column(name="GUID", length=64)

    public String getGuid() {
        return this.guid;
    }
    
    public void setGuid(String guid) {
        this.guid = guid;
    }
    
    @Column(name="ENABLE", length=2)

    public String getEnable() {
        return this.enable;
    }
    
    public void setEnable(String enable) {
        this.enable = enable;
    }
    
    @Column(name="ROUTER", length=510)

    public String getRouter() {
        return this.router;
    }
    
    public void setRouter(String router) {
        this.router = router;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="CREATE_DATETIME", length=7)

    public Date getCreateDatetime() {
        return this.createDatetime;
    }
    
    public void setCreateDatetime(Date createDatetime) {
        this.createDatetime = createDatetime;
    }
    
    @Column(name="USER_ID", precision=10, scale=0)

    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    @Column(name="USER_NAME", length=64)

    public String getUserName() {
        return this.userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="FINISH_DATETIME", length=7)

    public Date getFinishDatetime() {
        return this.finishDatetime;
    }
    
    public void setFinishDatetime(Date finishDatetime) {
        this.finishDatetime = finishDatetime;
    }
    
    @Column(name="FILE_NAME", length=510)

    public String getFileName() {
        return this.fileName;
    }
    
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
   








}